//
//  SBBaseLabel.h
//  SBAdaptiveTool
//
//  Created by user on 2018/9/10.
//  Copyright © 2018年 陈振旭. All rights reserved.
//

#import <UIKit/UIKit.h>
IB_DESIGNABLE
@interface SBBaseLabel : UILabel

@property (nonatomic) IBInspectable CGFloat SBCornerRadius;
@property (nonatomic) IBInspectable CGFloat SBBorderWidth;
@property (nonatomic) IBInspectable BOOL SBMasksToBounds;
@property (nonatomic,copy) IBInspectable UIColor *SBBorderColor;

- (void)labelText:(NSString *)text
      lineSpacing:(CGFloat)l_spacing;


- (void)labelText:(NSString *)text
   sectionSpacing:(CGFloat)s_spacing
      lineSpacing:(CGFloat)l_spacing;


+ (NSAttributedString *)attributedTextArray:(NSArray *)texts
                                 textColors:(NSArray *)colors
                                  textfonts:(NSArray *)fonts;


+ (NSAttributedString *)attributedTextArray:(NSArray *)texts
                                 textColors:(NSArray *)colors
                                  textfonts:(NSArray *)fonts
                                lineSpacing:(CGFloat)l_spacing;


+ (CGSize)sizeLabelWidth:(CGFloat)width
          attributedText:(NSAttributedString *)attributted;


+ (CGSize)sizeLabelWidth:(CGFloat)width
                    text:(NSString *)text
                    font:(UIFont *)font;


+ (CGSize)sizeLabelWidth:(CGFloat)width
                    text:(NSString *)text
                    font:(UIFont *)font
             lineSpacing:(CGFloat)l_spacing;

@end
